package com.gjy.sb.controller;

import com.gjy.sb.domain.AjaxResult;
import com.gjy.sb.domain.StaffInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-07-25 08:58:10
 */
@RestController
@RequestMapping("/staff")
public class StaffInfoController {

    @GetMapping("/get")
    public AjaxResult getStaffInfoById(@RequestParam Long id) {
        StaffInfo staffInfo = new StaffInfo();
        staffInfo.setId(id);
        staffInfo.setName("GJY");
        return AjaxResult.builder().data(staffInfo).build();
    }
}
